package office.service.sale;

import java.util.List;

import office.action.sale.form.SaleChanceConditionForm;
import office.action.sale.form.SaleChanceForm;
import office.action.sale.wrapper.SaleChanceWrapper;

import platform.common.bo.Page;
import platform.common.exception.BusinessException;

/**
 * 销售机会管理
 * @author ZhangYQ
 *
 */
public interface ISaleChanceService {
	/**
	 * 获取分页信息
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfo()throws BusinessException;
	/**
	 * 根据条件查询总页数
	 * @param condition
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfoByCondition(SaleChanceConditionForm condition)throws BusinessException;
	/**
	 * 获取所有的销售机会
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List findAllPriceData(Page page)throws BusinessException;
	/**
	 * 编辑销售机会
	 * @param saleChanceForm
	 * @throws BusinessException
	 */
	public void editSaleChance(SaleChanceForm saleChanceForm)throws BusinessException;
	
	/**
	 * 获取分页的销售机会信息
	 * @param condition
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<SaleChanceWrapper> findAllSaleChanceByCondition(SaleChanceConditionForm condition,Page page) throws BusinessException;
	/**
	 * 删除销售机会
	 * @param id
	 * @throws BusinessException
	 */
	public void delSaleChanceManageById(String id)throws BusinessException;
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public SaleChanceForm getById(String id)throws BusinessException;
}
